﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.Sellers;
namespace ZBJF.Warranty.IBLL
{
    public partial interface ISellersOrganizationService
    {
        IQueryable<SellersOrganization> GetSellersOrganizationAll();
        bool IsExist(string orgaName, long id = 0);
        /// <summary>
        /// 筛选列表
        /// </summary>
        /// <param name="model">筛选条件</param>
        /// <param name="total">条数</param>
        /// <returns></returns>
        IQueryable<SellersOrganization> GetPagingList(SellersOrganizationModel model, out int total);
        SellersOrganization LoadByID(long id);
        SellersOrganization LoadParentOrganization(long parentID);
        /// <summary>
        /// 根据父级ID获取子级集合
        /// </summary>
        /// <param name="parentId">父级ID</param>
        /// <returns></returns>
        IQueryable<SellersOrganization> GetSellersOrganizationAllByParentId(long parentId);
    }
}
